<style>
	table.s_profile{
		width: 100%;
	}
	th.profile{
		width: 200px;
		text-align: left;
	}
</style>

<?php
	$grade_level = empty($enrollee_data) ?  NULL : $enrollee_data->level_desc;
	$name  = empty($enrollee_data) ? NULL : $enrollee_data->fullname;
	$idno  = empty($enrollee_data) ? NULL : $enrollee_data->idno;
	$p_id  = empty($enrollee_data) ? NULL : $enrollee_data->profile_id;
	$e_id  = empty($enrollee_data) ? NULL : $enrollee_data->e_id;
	$room  = empty($enrollee_data) ? NULL : empty($enrollee_data->room_name) ? 'Not Yet Assigned' : $enrollee_data->room_name;
	$section  = empty($enrollee_data) ? NULL : empty($enrollee_data->section_name) ? 'Not Yet Assigned' : $enrollee_data->section_name ;
	$level_id = empty($enrollee_data) ? NULL : $enrollee_data->level_id;
?>

<div>
	<table class="table table-stripped">
		<tr>
			<td colspan="2"><span class="label label-inverse">Student Profile.</span></td>
			<td colspan="4">
				<span class="radius secondary label">Student Name:</span>
				<div class="btn-group">
					<button class="btn"><?php echo ucwords(strtolower($name));?></button>
					<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
					<ul class="dropdown-menu">
						<li><a href="<?=site_url('profile/student').'/'.$e_id;?>">View Profile</a></li>
						<li><a href="<?=site_url('fees/view_fees').'/'.$e_id;?>">View fees</a></li>
						<?$this->load->view('profile/_profile_links');?>
					</ul>
				</div>
			</td>
		</tr>
		<tr>
			<td class="student-name">
				<span class="radius secondary label">Grade Level:</span>
			</td>
			<td class="student-name">
				<span class="radius secondary label">ID Number</span>
			</td>
			<td class="student-name">
				<span class="radius secondary label">Room:</span>
			</td>
			<td class="student-name">
				<span class="radius secondary label">Section:</span>
			</td>
			<td class="student-name">
				<span class="radius secondary label">Grading Periond</span>
			</td>
			<td class="student-name">
				<span class="radius secondary label">School Year:</span>
			</td>
		</tr>
		<tr>
			<td class="student-name">
				<?php echo ucwords($grade_level);?>
			</td>
			<td class="student-name">
				<?php echo $idno;?>
			</td>
			<td class="student-name">
				<?php echo $room;?>
			</td>
			<td class="student-name">
				<?php echo $section;?>
			</td>
			<td class="student-name">
				<?php echo ucwords($this->gperiods_current);?>
			</td>
			<td class="student-name">
				<?php echo ucwords($this->schoolyear_date);?>
			</td>
		</tr>
		<?echo isset($finance_status) ? $finance_status : NULL;?>
		</tr>
	</table>
</div>